package org.swqsbssddqs.shortlink.project.common.constant;

/**
 * 短链接后管 Redis 缓存常量类
 */
public class RedisCacheConstant {

    /**
     * 短链接重定向分布式锁
     */
    public static final String LOCK_SHORT_LINK_REDIRECT_KEY = "short-link:lock:redirect:%s";

    /**
     * 短链接重定向
     */
    public static final String SHORT_LINK_REDIRECT_KEY = "short-link:redirect:%s";

    /**
     * 短链接更新gid读写锁
     */
    public static final String LOCK_UPDATE_GID_KEY = "short-link:lock:update-gid:%s";
    /**
     * 短链接延迟队列消费统计 Key
     */
    public static final String DELAY_QUEUE_STATS_KEY = "short-link:delay-queue:stats";
    /**
     * 短链接goto key
     */
    public static final String SHORT_LINK_GOTO_KEY = "short-link:goto:%s";
    /**
     * 短链接跳转空值
     */
    public static final String SHORT_LINK_REDIRECT_IS_NULL_KEY = "short-link:redirect:is-null:%s";

    /**
     * 短链接监控消息保存队列 Topic 缓存标识
     */
    public static final String SHORT_LINK_STATS_STREAM_TOPIC_KEY = "short-link:stats-stream";

    /**
     * 短链接监控消息保存队列 Group 缓存标识
     */
    public static final String SHORT_LINK_STATS_STREAM_GROUP_KEY = "short-link:stats-stream:only-group";

    /**
     * 短链接统计uv
     */
    public static final String SHORT_LINK_STATS_UV_KEY = "short-link:stats:uv:%s";

    /**
     * 短链接统计ipv
     */
    public static final String SHORT_LINK_STATS_IPV_KEY = "short-link:stats:ipv:%s";

}
